import request from '@/utils/request'

// 查询场馆模块列表
export function listStudio(query) {
  return request({
    url: '/studio/studio/list',
    method: 'get',
    params: query
  })
}

// 查询场馆模块详细
export function getStudio(studioId) {
  return request({
    url: '/studio/studio/' + studioId,
    method: 'get'
  })
}

// 新增场馆模块
export function addStudio(data) {
  return request({
    url: '/studio/studio',
    method: 'post',
    data: data
  })
}

// 修改场馆模块
export function updateStudio(data) {
  return request({
    url: '/studio/studio',
    method: 'put',
    data: data
  })
}

// 删除场馆模块
export function delStudio(studioId) {
  return request({
    url: '/studio/studio/' + studioId,
    method: 'delete'
  })
}
